junit_tests(
  dependencies=[
    '3rdparty/jvm/ch/qos/logback:logback-classic',
    '3rdparty/jvm/com/fasterxml/jackson/core:jackson-annotations',
    '3rdparty/jvm/com/fasterxml/jackson/core:jackson-core',
    '3rdparty/jvm/com/fasterxml/jackson/core:jackson-databind',
    '3rdparty/jvm/com/fasterxml/jackson/datatype:jackson-datatype-joda',
    '3rdparty/jvm/com/fasterxml/jackson/module:jackson-module-scala',
    '3rdparty/jvm/com/github/nscala_time:nscala_time',
    '3rdparty/jvm/com/google/inject/extensions:guice-assistedinject',
    '3rdparty/jvm/com/google/inject/extensions:guice-multibindings',
    '3rdparty/jvm/com/google/inject/extensions:guice-testlib',
    '3rdparty/jvm/com/google/inject:guice',
    '3rdparty/jvm/commons-lang:commons-lang',
    '3rdparty/jvm/io/netty:netty',
    '3rdparty/jvm/javax/inject:javax.inject',
    '3rdparty/jvm/joda-time:joda-time',
    '3rdparty/jvm/junit:junit',
    '3rdparty/jvm/net/codingwell:scala-guice',
    '3rdparty/jvm/org/apache/thrift:libthrift-0.5.0',
    '3rdparty/jvm/org/mockito:mockito-all',
    '3rdparty/jvm/org/scalacheck:scalacheck',
    '3rdparty/jvm/org/scalatest:scalatest',
    '3rdparty/jvm/org/slf4j:slf4j-api',
    '3rdparty/jvm/org/specs2:mock',
    'finagle/finagle-base-http/src/main/scala',
    'finagle/finagle-http/src/main/scala',
    'finatra/inject/inject-app/src/test/scala:test-deps',
    'finatra/inject/inject-core/src/main/scala',
    'finatra/inject/inject-core/src/test/scala:test-deps',
    'finatra/inject/inject-slf4j/src/main/scala',
    'finatra/inject/inject-utils/src/main/scala',
    'finatra/jackson/src/main/java',
    'finatra/jackson/src/main/scala',
    'finatra/jackson/src/test/scala:test-deps',
    'util/util-core/src/main/scala',
    'util/util-slf4j-api/src/main/scala',
  ],
  sources=rglobs(
    'com/twitter/finatra/json/tests/*.scala',
    'com/twitter/finatra/json/tests/*.java',
  ),
)

scala_library(name="test-deps",
  provides = scala_artifact(
    org = 'com.twitter',
    name = 'finatra-jackson-tests',
    repo = artifactory,
  ),
  dependencies=[
    '//:scalap',
    '3rdparty/jvm/com/fasterxml/jackson/core:jackson-databind',
    '3rdparty/jvm/com/fasterxml/jackson/datatype:jackson-datatype-joda',
    '3rdparty/jvm/com/fasterxml/jackson/module:jackson-module-scala',
    '3rdparty/jvm/junit',
    '3rdparty/jvm/org/joda:joda-convert',
    '3rdparty/jvm/org/scalatest',
    '3rdparty/jvm/org/slf4j:slf4j-api',
    'finatra/inject/inject-core/src/main/scala',
    'finatra/inject/inject-core/src/test/scala:test-deps',
    'finatra/inject/inject-slf4j/src/main/scala',
    'finatra/jackson/src/main/scala',
    'util/util-core/src/main/scala',
    'util/util-slf4j-api/src/main/scala',
  ],
  fatal_warnings=True,
  sources=globs(
    'com/twitter/finatra/json/*.scala',
    'com/twitter/finatra/validation/*.scala',
    'com/twitter/finatra/validation/*.java',
  ),
)
